package com.hksj.Intelligentmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hksj.Intelligentmanagement.dto.DepartmentDTO;
import com.hksj.Intelligentmanagement.entity.DepartmentEntity;
import com.hksj.Intelligentmanagement.vo.DepartmentVo;
import com.hksj.Intelligentmanagement.vo.RoomVo;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<DepartmentEntity> {

    List<DepartmentVo> queryDepartmentListByPage(IPage page, @Param("departmentDTO") DepartmentDTO departmentDTO);

    List<RoomVo> listRoomByRegionId(@Param("regionId") String regionId, @Param("time") String time, @Param("type")Integer type);
}
